﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FIleExercise : MonoBehaviour
{
    private void Start()
    {
        TestData t1 = new TestData();
        t1.age = 566;
        t1.name = "乌鲁鲁";
        t1.number = 520;
        t1.gender = true;
        TestData.SavaData(t1, "MyData");

        TestData t2 = TestData.LoadData("MyData");

        print(t2.age);
        print(t2.name);
        print(t2.number);
        print(t2.gender);
    }
}
